import Vue from 'vue'
import App from './App'
import store from './store/store'
import fetch from './common/httpRequest'

import index from './pages/index/index.vue'
Vue.component('index',index)

import collection from './pages/collection/collectionList.vue'
Vue.component('collection',collection)

import follow from './pages/follow/follow.vue'
Vue.component('follow',follow)

import person from './pages/person/person.vue'
Vue.component('person',person)

Vue.config.productionTip = false

//网络监听
setTimeout(() => {
	uni.onNetworkStatusChange(function(res) {
		store.commit("networkChange", {
			isConnected: res.isConnected
		})
	});
}, 100)

Vue.prototype.fetch = fetch
Vue.prototype.$store = store

App.mpType = 'app'

const app = new Vue({
	store,
    ...App
})
app.$mount()

 



